Skip to content

Runs: show how each run was started and by whom, with a Started by filter - #247

Merged
nambok merged 1 commit into
mainfrom
ui/run-trigger-source
Oct 27, 2026
Merged

nambok merged 1 commit into
mainfrom
ui/run-trigger-source

Conversation

@nambok

@nambok nambok commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

A run's row used to show <ticket id> · <repo> · took X. A run Coderhelm started on its own showed an id like E2E-FIX-a7f51433483adf820849, and nothing said whether a run came from Jira, GitHub, an alert, a log finding, a plan or the dashboard. Each row and the run page's header now say how the run was started and by whom, with an icon and a link to what started it. A "Started by" filter sits next to the status toggles.

Needs CoderHelm/coderhelm-platform#335, which adds trigger to the runs API and the started_by filter. Merge that one first.

Changes

  • components/run-trigger.tsx: RunTriggerLine draws the gateway's trigger as icon, label, ref (linked) and "by person". It only follows links that are dashboard paths or https://. If the ref only repeats the run's title (an alert's name), the label carries the link instead. The line wraps like text, so on a phone the list's "·" never ends up on a line of its own.
    • Examples: "Jira · ABC-123 · by Dana", "GitHub issue · #41: Add typed formatBytes utility function #42 · by octocat", "Started by Coderhelm · flaky test" (links to the test), "Started by Coderhelm · log finding · /aws/lambda/api" (links to the finding), "Alert" (links to the alert event), "Plan · · by ", "Dashboard · log finding · by ", "Slack · by ".
  • Runs list (app/page.tsx):
    • The source line replaces the ticket id on each row's meta line.
    • The new "Started by" select (anyone, Jira, GitHub, Coderhelm, Alerts, Plans, Dashboard, Chat) is kept in the address as ?started_by=, is sent to /api/runs, counts toward "Clear filters", and has its own empty-state hint.
    • ListToolbar gets a filters slot for it.
  • Run page (runs/detail): the same line in the header. On the Details tab, a Coderhelm or alert run's ticket id is labelled "Internal ID" instead of "Ticket".
  • Older backends without trigger show the ticket as before.
  • api.ts: RunTrigger and RunTriggerKind, plus started_by on listRuns. openapi-fields.ts is pinned to platform 3d0ddc4 (the branch commit of Settings: a self-hosted install's own AWS account never asks for a stack in AWS #335), and api-contract.ts holds RunTrigger to it.

Verification

  • npm run typecheck, npm run lint, npm run check:openapi, npm run build (with the CI API URL): all pass.
  • Full e2e on the static build (E2E_STATIC=1 npx playwright test): 1132 passed.
  • New e2e/run-trigger.spec.ts, with mock data covering every kind:
    • Each row's words, links and person. Internal ids never show.
    • The filter's options, its value in the address across a reload and alongside a status, Clear filters, opening from a link, ignoring an unknown value, and the empty state.
    • The run page header for a flaky-test run and a Jira run.
    • A backend that sends no trigger.
  • Screenshots at 1440 and 390 (list, list filtered to Coderhelm, run page for a Coderhelm run and a Jira run): nothing scrolls sideways (the spec asserts this), and the trigger line wraps cleanly on a phone.

…lter

Each row's meta line and the run page's header now say what started the
run, from the `trigger` the runs API sends: "Jira · ABC-123 · by Dana",
"GitHub issue · #42 · by octocat", "Started by Coderhelm · flaky test",
"Alert", "Plan · <plan>", "Dashboard · log finding · by <person>", with
a small icon and a link to the ticket, test, finding, alert or plan.
Internal ticket ids (E2E-FIX-..., LOG-..., ALERT-...) are no longer shown
as the ticket; the run's Details tab lists them as "Internal ID".

A "Started by" select (Jira, GitHub, Coderhelm, Alerts, Plans, Dashboard,
Chat) sits next to the status toggles, is kept in the address as
`started_by`, and is sent to the server. A backend without `trigger`
shows the ticket as before.

openapi-fields.ts is pinned to coderhelm-platform 3d0ddc4 (the PR adding
`trigger`), and api-contract.ts holds RunTrigger to it.
@nambok
nambok merged commit c9a3577 into main Oct 27, 2026
5 checks passed
@nambok
nambok deleted the ui/run-trigger-source branch October 27, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant